package OOday03;

public class InterfaceDemo {
    public static void main(String[] args) {

    }
}
//接口语法
interface Inter{
    void show();
    void test();//接口中的方法默认为抽象方法
}
class InterImpl implements Inter{
    public void show(){
    }
    public void test(){
    }
}

//接口的多实现
interface Inter1{
    void show();
}
interface Inter2{
    void test();
}
abstract class Aoo{
    abstract void say();
}
class Boo extends Aoo implements Inter1,Inter2{
    @Override
    public void test() {

    }

    @Override
    public void show() {

    }

    @Override
    void say() {

    }
}
//接口继承接口
interface Inter3{
    void show();
}
interface Inter4 extends Inter3{
    void test();
}
class Coo implements Inter4{
    @Override
    public void test() {

    }
    public void show(){
    }
}